/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('fUserTeamRelation', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true,
      field: 'id'
    },
    leaderId: {
      type: DataTypes.INTEGER(120),
      allowNull: true,
      field: 'leader_id'
    },
    memberId: {
      type: DataTypes.INTEGER(120),
      allowNull: true,
      field: 'member_id'
    },
    invalid: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '1',
      field: 'invalid'
    },
    createTime: {
      type: DataTypes.DATE,
      allowNull: true,
      field: 'create_time'
    }
  }, {
    tableName: 'f_user_team_relation'
  });
};
